package com.csjung.games.gamenori.client.presenter;

import com.google.gwt.user.client.ui.IsWidget;

import com.csjung.games.gamenori.shared.UserProxy;
import com.csjung.games.ui.client.PresentsWidgets;

import java.util.List;

public interface UserListView extends IsWidget {

  /**
   * The presenter for this view.
   */
  public interface Presenter extends PresentsWidgets {
    /**
     * Select a User.
     * 
     * @param selected the select User
     */
    void selectUser(UserProxy selected);
  }
  
  /**
   * Clear the list of tasks.
   */
  void clearList();
  
  /**
   * Sets the new presenter, and calls {@link Presenter#stop()} on the previous
   * one.
   */
  void setPresenter(Presenter presenter);
  
  /**
   * Set the list of tasks to display.
   * 
   * @param tasks the list of tasks
   */
  void setUsers(List<UserProxy> Users);
}
